/**   
 * api接口统一管理
 */
import {get, post } from './http';

//登录短信
export const smsLogin = p => post('v1/manage/sms/login', p);

//登录
export const login = p => post('v1/customor/login', p);

// 列表用户
export const listUser = p => get('v1/manage/sysUser/list', p);

export const MANAGERS = p => get('v1/manage/sysUser/list', p);
export const info = p => get('v1/manage/sysUser/info', p);
export const listALI = p => get('v1/manage/sysUser/listAll', p);

export const ALL_MENUS = p => get('v1/manage/sysRes/list', p);

export const LIST_BY_ROLE = p => get('http://47.99.84.93:9098/v1/manage/sysRes/listByRole', p);

//export const LIST_BY_ROLE = p => get('http://fox.foxcore.cn/api/v1/manage/sysRes/listByRole', p);

export const ROLES = p => get('v1/manage/sysRole/list', p);
export const GET_MENUS_BY_ROLE = p => get('v1/manage/sysRes/listRoleTree', p);

//wmc9087
export const productlist = p => get('v1/product/list', p);
export const makeuplist = p => get('v1/product/makeup/list', p);
export const listOfferUser = p => post('v1/customor/listOfferUser', p);
export const productdetail = p => post('v1/product/detail', p);
export const categorylistF = p => post('v1/category/listF', p);

export const currentUser = p => post('v1/customor/currentUser', p);
export const applyr = p => post('v1/sample/applyr', p);

export const apply2 = p => post('v1/sample/apply', p);
export const modifyAmlFile = p => post('v1/sample/modifyAmlFile', p);
export const recordAuth = p => post('v1/sample/recordAuth', p);
export const modifyCount = p => post('v1/sample/modifyCount', p);

export const producedownload = p => post('v1/download/produce', p);
export const recordListByMain = p => get('v1/sample/recordListByMain', p);


export const categorylistZ = p => post('v1/category/listZ', p);


export const download1 = p => post('v1/download/apply', p);
export const userDetail = p => post('v1/customor/userDetail', p);
export const listByProductCode = p => get('v1/product/listByProductCode', p);
export const downloadmakeup = p => post('v1/download/makeup', p);
export const modifyAmlFile2 = p => post('v1/product/updateAmlPdf', p);

// export const ORDER_MAIN_LIST = p => post('http://47.99.84.93:9087/v1/order/mainList', p)
// export const ORDER_PRODUCT_LIST = p => post('http://47.99.84.93:9087/v1/order/productList', p)
// export const ADMINORDERLIST = p => post('http://47.99.84.93:9087/v1/redirect/adminOrderList', p)
// 查询料号
export const GET_SINGLE_PRODUCT = p => get('v1/liaohao', p);
// 提交样品申请
export const ADD_SAMPLE_APPLY = p => post('v1/sample/apply', p);

export const file_pdf = p => post('v1/file/pdf/product', p);
//客户
export const CUSTOMOR_LIST = p => get('v1/custmor/list', p);

//样品
export const SAMPLE_LIST = p => get('/v1/sample/list', p);
export const SAMPLE_MY_LIST = p => get('v1/sample/myList', p);

export const SAMPLE_APPLY = p => post('v1/sample/apply', p);
export const SAMPLE_AUTH = p => post('v1/sample/recordAuth', p);
export const SAMPLE_SEND = p => post('v1/sample/send', p);
export const SAMPLE_ARRIVE = p => post('v1/sample/arrive', p);
export const BELONGMENULIST = p => post('v1/sample/belongMenuMainList', p);//查询供应商旗下样品订单
export const MODIFYCOUNT = p => post('v1/sample/modifyCount', p);//样品订单添加数量 
export const RECORDLISTBYMAIN = p => get('v1/sample/recordListByMain', p);//样品订单详情



//发送信息
export const MSG_DIALOG = p => get('v1/AmlMessage/listDialog', p);
export const MSG_LIST = p => get('v1/AmlMessage/list', p);
export const MSG_ADD = p => get('v1/AmlMessage/add', p);
//商城用户管理
export const LISTSHOPUSER = p => post('/v1/customor/listShopUser', p);
export const AUTHSHOPUSER = p => post('/v1/manage/sysUser/authShopUser', p);
export const DELETESHOPUSER = p => post('/v1/manage/sysUser/deleteShopUser', p);
export const UPDATESHOPUSER = p => post('/v1/manage/sysUser/updateShopUser', p);

export const KEFUADD = p => post('v1/kefu/add', p); // 发送聊天
export const KEFULIST = p => post('v1/kefu/list', p); //客服列表
export const KEFUMESSAGELIST = p => post('v1/kefu/messageList', p); // 聊天列表

export const LIAOHAO_SELFLIST = p => get('v1/liaohao/selfList', p); // 库存数据
export const LIAOHAO_GUIGELIST = p => get('v1/liaohao/guigeList', p); // 规格分析
export const LIAOHAO_MAKEUPLIST = p => post('v1/liaohao/makeupList', p); // 出货数据\补料申请
export const ADDPDF = p => post('v1/product/updateSpecsBook', p); // pdf提交


//个人中心 jsw
//修改密码
export const MODIFYPWD = p => post('v1/customor/modifyPwd', p)
//发送修改手机短信
export const SMSMODIFYMOBILE = p => post('v1/manage/sms/modifyMobile', p)
//修改手机号
export const MODIFYMOBILE = p => post('v1/customor/modifyMobile', p)
//忘记密码 发送短信
export const SMSFORGET = p => post('v1/manage/sms/forgetPwd', p)
//重置密码
export const RESETPWD = p => post('v1/customor/resetPwd', p)

//提交发货方式接口
export const SENDSTYLE = p => get('v1/sample/updateDeliverySide', p)
//确认发货
export const CONFIRMSEND = p => get('v1/sample/confirmSend', p)

//根据供应商获取料号

export const GETCODEBYNAME = p => post('v1/product/listAll', p)






 

